<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../lib/Validform/5.3.2/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/Project.css" />
    <link rel="stylesheet" type="text/css" href="../../../ht-css/jedate.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>渠道查询</title>
</head>
<body>
<!--<nav class="breadcrumb">对接平台管理 <span class="c-gray en">&gt;</span> 渠道管理 <span class="c-gray en">&gt;</span> 新增项目<span class="c-gray en">&gt;</span> 选择<a
        class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
        href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a></nav>-->
<article class="page-container">
    <div class="ml-20 mr-20">
        <div class="bg-1 bk-gray pb-10">
            <form id="form-search">
                <div class="pl-10 lh-30 mb-10">
                    <div class="line mb-10"></div>
                    <table class="table-hover table_li ml-10 mb-10 table">
                        <thead class="text-l">
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10" id="hide">
                                    <label class="form-label f-l pt-5 text-r w-75">渠道名称:</label>
                                     <p class="form-label f-l pt-5 text-r w-55" id="customerName1" name="customerId"></p>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5 text-r w-75">客户ID:</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius w-180 f-l"  id="customerId" name="customerId" placeholder="请输入客户ID" onKeyUp="value=value.replace(/[\W]/g,'')" oncontextmenu="return false" maxlength="10">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5 text-r w-85">CRM客户代码:</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius w-250 f-l"  id="customerCode" name="customerCode"  placeholder="请输入CRM客户代码" oncontextmenu="return false" maxlength="50">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                            <td class="col-3-1">
                                <div class="row ml-10">
                                    <label class="form-label f-l pt-5 text-r w-85">客户名称:</label>
                                    <div class="formControls col-xs-8 col-sm-9">
                                        <input type="text" class="input-text radius w-250 f-l"  id="customerName" name="customerName"  placeholder="请输入客户名称" oncontextmenu="return false" maxlength="50">
                                    </div>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </td>
                        </tr>
                        </thead>
                    </table>
                </div>
                <div class="text-c pb-20 pt-10">
                    <input type="button" onclick="channel()" class="btn btn-secondary radius size-S " value="查&nbsp;&nbsp;询">
                    <input name="" type="reset" onclick="resetDivdd()" class="btn radius size-S ml-10 " value="重&nbsp;&nbsp;置">
                </div>
            </form>
            <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="50">客户ID</th>
                    <th width="50">CRM客户代码</th>
                    <th width="50">客户名称</th>
                    <th width="50">客户归属</th>
                    <th width="50">操作</th>
                </tr>
                </thead>
                <tbody class="shun">

                </tbody>
            </table>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>
    </div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>

<!--引入分页-->
<link rel="stylesheet" href="../../../lib/pagination/pagination.css">
<!--权限控制-->
<script type="text/javascript" src="../../../ht-js/power.js?rev=@@hash"></script>
<script src="../../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script src="../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../ht-js/warehouse.js?rev=@@hash"></script>
<script src="../../../ht-js/dockingplatform/channelorder/chooseChannel.js?rev=@@hash"></script>
<script src="../../../ht-js/dockingplatform/channel/addProject.js?rev=@@hash"></script>
<script>
    $(function(){
        if (sessionStorage.getItem("customerName1")!=null){
            $('#customerName1').html(sessionStorage.getItem("customerName1"));
        } else {
            $('#hide').hide();
        }
        $("#form-search").Validform({
            tiptype:2,
            callback:function(form){
                getList(1);
                return false;
            }
        });
    })
    function resetDivdd() {
        location.replace(location.href);

    }

    function Customerquery() {
        //校验ID格式
        jQuery.validator.addMethod("confirmID",function(value, element){
            var returnVal = true;
            var cn = value.substring(0,2);
            var num = value.substring(2,10);
            if(!isNaN(num)&&cn=='CN'){
                returnVal = true;
            }
            else if(value==''){
                returnVal = true;
            }
            else{
                returnVal = false;
            }
            return returnVal;
        },"输入有误");         //验证错误信息

        $("#form-member").validate({
            rules: {
                kehu_id: {
                    // maxlength:10,
                    minlength:10,
                    confirmID:$("#kehu_id").val(),
                },
                kehu_name: {
                    // maxlength:30,
                },
                hetong: {
                    // maxlength:10,
                    // minlength:10,
                },
            },
            submitHandler:function(form){
                getList(1)
            }
        })
    }
</script>
</body>
</html>